package com.naizhuai.util;

/**
 * 状态实体类
 * Created by code_han on 2018/2/1.
 */

public class ConstantsState {

    /*
    个人信息
     */
    private static final String FEMALE = "男";
    private static final String MALE = "女";


    //创建状态
    public static final int PRO_DEGREE_CREATE = 0;
    //进行状态
    public static final int PRO_DEGREE_CARRY = 1;
    //完成状态
    public static final int PRO_DEGREE_FINISHED = 2;

    //公司目标
    public static final int TYPE_PUBLIC = 0;
    //团队目标
    public static final int TYPE_PROTECTED = 1;
    //个人目标
    public static final int TYPE_PRIVATE = 2;

    /*
    周期性判断
     */
    //具有周期性
    public static final int TYPE_CIRCLE = 1;
    //一次性
    public static final int TYPE_SINGLE = 0;

    /*
    周期类型
     */
    //每小时
    public static final int TYPE_CYCLE_HOUR = 10;
    //每天
    public static final int TYPE_CYCLE_DAY = 11;
    //每周
    public static final int TYPE_CYCLE_WEEK = 12;
    //每月
    public static final int TYPE_CYCLE_MON = 13;
    //每个季度
    public static final int TYPE_CYCLE_QUA = 14;
    //每年
    public static final int TYPE_CYCLE_YEAR = 15;


    public static final String POWER_COMPANY_KEY = "power_company_key";
    public static final String POWER_DEPARTMENT_KEY = "power_department_key";

    /*
    权限的级别
     */
    //公司目标负责人/总管理权限
    public static final String COM_TARGET_MANAGER_LEVEL = "1";
    public static final String COM_TARGET_MANAGER_LEVEL_STRING = "企业负责人";
    //公司其他管理权限
    public static final String COM_MANAGER_POWER_LEVEL = "5";
    public static final String COM_MANAGER_POWER_LEVEL_STRING = "企业管理者";
    //普通权限
    public static final String COM_NORMAL_POWER_LEVEL = "2";
    public static final String COM_NORMAL_POWER_LEVEL_STRING = "成员";

    /*
    部门内的级别
     */
    //部门管理
    public static final String DEPARTMENT_MANAGER_POWER = "3";
    public static final String DEPARTMENT_MANAGER_POWER_STRING = "团队负责人";

    //部门副组长
    public static final String DEPARTMENT_VICE_MANAGER_POWER = "6";
    public static final String DEPARTMENT_VICE_MANAGER_POWER_STRING = "团队管理者";
    //部门成员
    public static final String DEPARTMENT_NORMAL_POWER = "2";
    public static final String DEPARTMENT_NORMAL_POWER_STRING = "成员";

    /*
    团队的种类
     */
    //临时小组（用于针对某一类型的问题设定的小组）
    public static final int TEAM_TYPE_PRIVATE = 0;
    //固定小组（部门，用于公司正规的自上而下的处理）
    public static final int TEAM_TYPE_PUBLIC = 1;

    /*
    添加员工的种类
    1.添加进公司
    2.添加进组
    3.添加进任务组
     */
    public static final int ADD_TO_COMPANY = 1;
    public static final int ADD_TO_DEPARTMENT = 2;
    public static final int ADD_TO_MISSION_TEAM = 3;

    /*
    移除员工的种类
    1.从公司移除
    2.从部门移除
    3.移除任务组
    */
    public static final int DELETE_FROM_COMPANY = 3;
    public static final int DELETE_FROM_DEPARTMENT = 2;
    public static final int DELETE_FROM_MISSION_TEAM = 1;

    //员工是否主动离职
    public static final int QUICK_BY_OTHERS = 1;
    public static final int QUICK_BY_SELF = 2;

    /*
    员工申请列表信息状态情况
     */
    public static final int REQUEST_MESSAGE_UNTREATED = 1;
    public static final int REQUEST_MESSAGE_AGREE = 2;
    public static final int REQUEST_MESSAGE_UNAGREE = 3;

    /*
    服务器返回操作成功与否
     */
    public static final String RESULT_OK = "1";
    public static final String RESULT_FAIL = "0";
    public static final String RESULT_FAIL_EXTRA = "";

    public static boolean isResultOk(String str) {
        return !(str.equals(RESULT_FAIL) || str.equals(RESULT_FAIL_EXTRA));
    }

    /*
    是否选择
     */
    public static final int CHECKED = 0;
    public static final int UNCHECKED = 1;

    /*
    选择参与范围的类型Type
     */
    public static final String CHOSEN_USER_TYPE_KEY = "chose_user_type";
    public static final int CHOSEN_TARGET_USER_TYPE = 1;
    public static final int CHOSEN_TASK_USER_TYPE = 2;
    public static final int CHOSEN_PROCESS_USER_TYPE = 3;
    public static final int CHOSEN_ACTION_USER_TYPE = 4;

    public static final String SERVER_ID_KEY = "server_id_key";

    //点赞状态
    public static final String STATE_THUMB_UP = "1";
    public static final String STATE_NO_THUMB_UP = "2";

    public static boolean hasThumbUp(String hasThumbUp) {
        return hasThumbUp.equals(STATE_THUMB_UP);
    }

    /*
    存储缓存数据
     */
    //是否启动
    public static boolean HAS_START = false;

    /*
    消息是否读取
     */
    //未处理
    public static final int STATE_NO_SEE = 1;
    //同意
    public static final int STATE_AGREE = 2;
    //拒绝
    public static final int STATE_CONFUSE = 3;

}
